﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RemoteObject
{
    public class FileDistributionRequestor
    {
        private static FileDistributionRequestor instance;
        private RemoteObject.MyRemoteObject proxyObjectTcp;

        public static FileDistributionRequestor getInstance()
        {
            if (instance == null) instance = new FileDistributionRequestor();
            return instance;
        }

        private FileDistributionRequestor()
        {
            proxyObjectTcp = (RemoteObject.MyRemoteObject)Activator.GetObject(typeof(RemoteObject.MyRemoteObject), Common.CloudServerURL);
        }

        public List<DownloadJob> GetFileDistributionInfo()
        {
            return proxyObjectTcp.GetFileDistributionRequest();
        }

    }
}
